<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "mops_gift_card".
 *
 * @property int $id
 * @property int $catalog
 * @property string $card_no
 * @property string $pwd
 * @property string $amount
 * @property int $status
 * @property int $created_at
 * @property int $updated_at
 */
class GiftCard extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'mops_gift_card';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['catalog', 'status', 'created_at', 'updated_at'], 'integer'],
            [['amount'], 'number'],
            [['card_no', 'pwd'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'catalog' => 'Catalog',
            'card_no' => 'Card No',
            'pwd' => 'Pwd',
            'amount' => 'Amount',
            'status' => 'Status',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }
}
